package com.hxzy.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hxzy.common.core.domain.entity.CmsContent;
import com.hxzy.system.domain.dto.CmsContentDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CmsContentMapper extends BaseMapper<CmsContent> {

    /**
     * 分页查询
     * @param page
     * @param cmsContentDTO
     * @return
     */
    IPage<CmsContent> search(IPage<CmsContent> page, @Param(value = "dto") CmsContentDTO cmsContentDTO);

    CmsContent findById(Long id);


    int updateInid(@Param(value = "cms") CmsContent cmsContent);

    int insertinto(CmsContent cmsContent);
}